from django.conf import settings
from django.conf.urls import url
from django.conf.urls.static import static

from apps.img.views import CheckChunk, Upload, mergeChunks, ImgListView, SplicingImg

app_name = 'img'
urlpatterns = [
                  url(r'^check_chunk$', CheckChunk.as_view(), name='checkChunk'),
                  url(r'^upload$', Upload.as_view(), name='upload'),
                  url(r'^merge_chunks$', mergeChunks.as_view(), name='mergeChunks'),
                  url(r"img_list", ImgListView.as_view(), name='imgList'),
                  url(r"splicing_img_view", SplicingImg.as_view(), name='splicingImg')
              ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
